package cn.tedu.spring.scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TextUserController {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(
                "cn.tedu.spring.scope"
        );
        UserController u1 =context.getBean(UserController.class);
        UserController u2 =context.getBean(UserController.class);
        System.out.println(u1);
        System.out.println(u2);
    }
}
